/*
 * Course.h
 *
 *  Created on: Nov 16, 2012
 *      Author: naduvec
 */

#ifndef COURSE_H_
#define COURSE_H_

#include "../include/Student.h"
#include <stdio.h>
#include <string>
#include <vector>
#include <iostream>
#include <sstream>
#include <fstream>

class Student;

class Course
{
public:
	virtual void teach();
	virtual void reg(Student &s)=0;
	void eraseRegStudent(Student &s);
	std::string getName();
	int getMinimum();
	int getSemester();
	static int cur_sem;
//	static bool malag;
	std::string getDep();
	void printStudents();
	virtual ~Course();

private:
	Course& getObj();

protected:
	void log(std::stringstream &sstm);
	Course(std::string name,int grade,int semester,std::string department);

	std::string name;
	int semester;
	int minimum;
	std::string department;
	std::vector<Student*> regStudents;
};

#endif /* COURSE_H_ */
